import axios from 'axios'
const http = axios.create({
    baseURL: (window as any).VUE_APP_BASEURL, // api 的 base_url
    withCredentials: true, // 默认的
    timeout: 60000 // request timeout
})
http.interceptors.response.use(
    response => {
        return response.data
    },
    error => {
        window.console.log('请求错误', error)
    }
)
export default http